// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProcessManagementId',
        footer: "Foots",
        cnName: '工序维护',
        name: 'processmanagementmodel',
        url: "/processmanagementmodel/",
        sortName: "ProcessManagementId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProcessManagementCode":"","ProcessManagementName":"","ProcessManagementType":"","ProcessReporting":"","ProcessDescription":""};
    const editFormOptions = [[{"title":"工序编码","field":"ProcessManagementCode","type":"text"},
                               {"title":"工序名称","field":"ProcessManagementName","type":"text"}],
                              [{"dataKey":"工序类型","data":[],"title":"工序类型","field":"ProcessManagementType","type":"select"}],
                              [{"dataKey":"工序报工","data":[],"title":"工序报工","field":"ProcessReporting","type":"radio"}],
                              [{"title":"工序描述","field":"ProcessDescription","type":"textarea"}]];
    const searchFormFields = {"ProcessManagementCode":"","ProcessManagementName":"","ProcessManagementType":""};
    const searchFormOptions = [[{"title":"工序编码","field":"ProcessManagementCode"},{"title":"工序名称","field":"ProcessManagementName"},{"dataKey":"工序类型","data":[],"title":"工序类型","field":"ProcessManagementType","type":"select"}]];
    const columns = [{field:'ProcessManagementId',title:'工序Id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProcessManagementCode',title:'工序编码',type:'string',width:120,align:'left',sort:true},
                       {field:'ProcessManagementName',title:'工序名称',type:'string',width:120,align:'left'},
                       {field:'ProcessManagementType',title:'工序类型',type:'string',bind:{ key:'工序类型',data:[]},width:120,align:'left'},
                       {field:'ProcessReporting',title:'工序报工',type:'string',bind:{ key:'工序报工',data:[]},width:120,align:'left'},
                       {field:'ProcessDescription',title:'工序描述',type:'string',width:220,align:'left'},
                       {field:'ProcessAttributes',title:'工序属性',type:'string',width:220,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:220,hidden:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}